package com.yesido.javabase.xuehua;

/**
 * @author yesido
 * @description
 * @date 2023-06-28 17:26
 * @Version 8.3
 */
public class Main {
    public static void main(String[] args) {
        // 创建一个SnowflakeIdGenerator实例，传入节点ID
        SnowflakeIdGenerator idGenerator = new SnowflakeIdGenerator(1);

        // 生成ID
        long id = idGenerator.generateId();
        System.out.println("Generated ID: " + id);
    }
}
